extends Spatial

onready var MAIN = find_parent("MAIN")
onready var vp_size = get_viewport().size
var navigation_mode = true
var camera

func _ready():
	camera = $Camera

func _process(delta):
	if navigation_mode:
		if Input.is_action_pressed("camera_up"):
			camera.rot_vertical(delta)
		if Input.is_action_pressed("camera_down"):
			camera.rot_vertical(delta,false)
		if Input.is_action_pressed("camera_right"):
			camera.rot_horizontal(delta)
		if Input.is_action_pressed("camera_left"):
			camera.rot_horizontal(delta,false)
		if Input.is_action_pressed("camera_zoom_in"):
			camera.zoom(delta,false)
		if Input.is_action_pressed("camera_zoom_out"):
			camera.zoom(delta)
		if Input.is_action_pressed("camera_reset"):
			camera.reset_cam()
